# 打开文件
f = open("D:\\file\\test1.txt", "a", encoding="UTF-8")
# 文件的写入
f.write("黑马程序员")
# 关闭
f.close()

#

f = open("D:\\file\\test.txt", "a", encoding="UTF-8")
f.write("月薪过万, 就来黑马")
f.close()

#
